package com.coolgor.coldot.entity.wechat.gzh;

import java.util.Date;


/**
 * 企业号授权token
 * 
 * @author CoolGor
 *
 */
public class GZHAccessToken {

	// 主键ID
	private Long recordID;
	// app ID
	private String appID;
	// app的中文名字
	private String appName;
	// 应用的secret密码
	private String secret;	
	// 获取到的凭证
	private String accessToken;
	// 创建时间
	private Date createTime;
	// 失效时间
	private Date invalidTime;
	// 凭证的有效时间（秒）
	private Integer expireTime;


	public Long getRecordID() {
		return recordID;
	}

	public void setRecordID(Long recordID) {
		this.recordID = recordID;
	}

	public String getAppID() {
		return appID;
	}

	public void setAppID(String appID) {
		this.appID = appID;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getInvalidTime() {
		return invalidTime;
	}

	public void setInvalidTime(Date invalidTime) {
		this.invalidTime = invalidTime;
	}

	public Integer getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Integer expireTime) {
		this.expireTime = expireTime;
	}


	@Override
	public String toString() {
		return "GZHAccessToken{" +
				"recordID=" + recordID +
				", appID='" + appID + '\'' +
				", appName='" + appName + '\'' +
				", secret='" + secret + '\'' +
				", accessToken='" + accessToken + '\'' +
				", createTime=" + createTime +
				", invalidTime=" + invalidTime +
				", expireTime=" + expireTime +
				'}';
	}
}
